package cn.wzc.crystal.platform;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.data.jdbc.repository.config.EnableJdbcAuditing;
import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories;

import java.lang.annotation.*;

/**
 * 启动Crystal平台,标注了此注解,Crystal平台框架各个模块才会生效,
 * 比如: AOP增强模块,全局API异常处理模块,...
 */

@EnableJdbcAuditing
@EnableJdbcRepositories
@EnableFeignClients
@EnableDiscoveryClient

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import({CrystalConfigure.class, CrystalRegistrar.class})
public @interface EnableCrystal {

}
